package library.and.xps.com.step.m.model;

import io.realm.RealmList;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
import io.realm.annotations.RealmClass;

@RealmClass
public class RunRecord extends RealmObject {
    @PrimaryKey
    private Long StartTimeStamp; //运动开始时间 主键 毫秒 用来判断应该插入还是更新

    private Long EndTimeStamp; //运动结束时间

    private int StepCounts;//步数 用来计算公里数

    private int Miles;//公里数

    private boolean completed = false;

    private RealmList<Coordinate> mCoordinates = new RealmList<>();

    public Long getStartTimeStamp() {
        return StartTimeStamp;
    }

    public void setStartTimeStamp(Long startTimeStamp) {
        this.StartTimeStamp = startTimeStamp;
    }

    public int getStepCounts() {
        return StepCounts;
    }

    public void setStepCounts(int stepCounts) {
        this.StepCounts = stepCounts;
    }

    public int getMiles() {
        return Miles;
    }

    public void setMiles(int miles) {
        this.Miles = miles;
    }

    public RealmList<Coordinate> getmCoordinates() {
        return mCoordinates;
    }

    public boolean isCompleted() {
        return completed;
    }

    public void setCompleted(boolean completed) {
        this.completed = completed;
    }

    public void setmCoordinates(RealmList<Coordinate> mCoordinates) {
        this.mCoordinates = mCoordinates;
    }

    public Long getEndTimeStamp() {
        return EndTimeStamp;
    }

    public void setEndTimeStamp(Long endTimeStamp) {
        this.EndTimeStamp = endTimeStamp;
    }


}
